/*

	FileHelpers.h
	
	Various helper methods for working
	with files using the C++ file stream
	library.
	
	Written by Sigurd Suhm 2009

*/

#ifndef _FILEHELPERS_H
#define _FILEHELPERS_H

// Check if a file exists
extern bool FileExists(const char *fileName);

// Creates a new file
// If the file already exists nothing will happen
// Returns 0 on success and an error code otherwise
extern int CreateFile(const char *fileName);

// Loads an entire file into memory as an
//  array of bytes. Returns file size in bytes
extern unsigned int LoadFileToMemory(const char *fileName, char **dest);

#endif		// _FILEHELPERS_H
